<template>
  <div id="app">
    <router-view  v-if="isRouteAlive"/>
  </div>
</template>

<script>
export default {
  name: 'App',
  provide () {
    return {
      reload:this.reload
    }
  },
  data () {
    return {
      isRouteAlive: true
    }
  },
  methods:{
    // 页面刷新操作 https://www.cnblogs.com/yinn/p/9056731.html
    reload () {
      this.isRouteAlive = false
      this.$nextTick(function() {
        this.isRouteAlive = true
      })
    }
  }
}
</script>
<style>
  @import url('//at.alicdn.com/t/font_1790309_hqbes8rl5n9.css');
  .el-table td, .el-table th.is-leaf {
    bottom: 1px;
  }
  .el-table--border td,.el-table--border td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
    right: -1px;
  }
</style>
